Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gpu quota #4

Merged
merged 14 commits into from
Mar 12, 2024
Merged

Gpu quota #4

merged 14 commits into from
Mar 12, 2024

Conversation

heshou198
Copy link
Contributor

Moved GPU Quota validation to DSMLP Validator
Separated GPU validation from AWSEd UID/PID validation using components architecture

@@ -16,9 +18,38 @@ def get_namespace(self, name: str) -> Namespace:
api = self.get_policy_api()
v1namespace: V1Namespace = api.read_namespace(name=name)
metadata: V1ObjectMeta = v1namespace.metadata

gpu_quota = 1
if metadata.annotations is not None and GPU_LIMIT_ANNOTATION in metadata.annotations:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what happens if metadata is none (we're not 100% sure of the API)? I'd add that case in and write a test

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hanzen will add this test case

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test case added. Just need to resolve low priority gpu bug before PR can be made.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Low priority bug fixed

@heshou198
Copy link
Contributor Author

GPU Validation merged into DSMLP Validator

@heshou198 heshou198 merged commit 83d2024 into main Mar 12, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants